package com.wbs.controller;

import com.wbs.api.SellerApi;
import com.wbs.resutil.PageBean;
import com.wbs.resutil.Result;
import com.wbs.vo.GoodsVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: 芝梦
 * @Description: 运营商管理商品控制层
 * @DateTime: 2024/2/1 8:23
 */
@RequestMapping("carriersManageSellers")
@RestController
public class carriersManageSellersController {
    @Autowired
    private SellerApi sellerApi;

    //远程调用查找商品分页信息
    @PostMapping("findByGoodsPage")
    public Result findByGoodsPage(@RequestBody PageBean<GoodsVO> pageBean){
        return sellerApi.findByConditionPage(null, pageBean);
    }

    //批准/驳回
    @PutMapping("approvalOrReject")
    public Result approvalOrReject(@RequestParam Long id, @RequestParam String auditStatus){
        return sellerApi.approvalOrReject(id,auditStatus);
    }

}
